﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CDSB.Indicators.Model
{
    public class CDSBQualityIndicator
    {
        public string ProjectName {get;set;}
        public decimal NumberScenarios { get; set; }
        public decimal NumberOfBugs { get; set; }
        public decimal CodeReview { get; set; }

        private decimal _averageBugs;
        public decimal AverageBugs
        {
            private set { _averageBugs = value; }
            get 
            {
                _averageBugs = Math.Round(NumberOfBugs / NumberScenarios,1);

                return _averageBugs; 
            }
        }

        
   }
}
